package com.neugh.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.neugh.entity.Collect;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neugh.entity.House;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sot
 * @since 2020-05-15
 */
public interface CollectMapper extends BaseMapper<Collect> {

    boolean addCollect(@Param("houseId") Integer houseId,@Param("userId") Integer userId);


    List<House> selectList(@Param("userId") Integer userId);
}
